﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace WPFCouse
{
    /// <summary>
    /// ToolBarWindow.xaml 的交互逻辑
    /// </summary>
    public partial class ToolBarWindow : Window
    {
        public ToolBarWindow()
        {
            InitializeComponent();
        }

        private void btnGoods_Click(object sender, RoutedEventArgs e)
        {
            //打开商品信息管理页面
            Window winGoods = new Window();
            winGoods.Title = "商品信息";
            winGoods.Show();
            txtModName.Text = "商品信息";
        }

        private void CheckBox_Click(object sender, RoutedEventArgs e)
        {
            if(chkDel.IsChecked==true)
            {
                //显示已删除列表。。。。。
            }
            else
            {
                //显示有效数据列表。。。。。
            }
        }

        private void RadioButton_Checked(object sender, RoutedEventArgs e)
        {
            RadioButton rbtn = sender as RadioButton;
            Rectangle rect = rbtn.Content as Rectangle;
            lblText.Foreground = rect.Fill;
        }
    }
}
